﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PFMKernels
{
    class PFMScheduledTask : PFMTask
    {
        public override bool Execute(PFMConfigurations.Schedule aSchedule, PFMConfigurations.Target aTarget)
        {

            bool result = base.Execute(aSchedule, aTarget);
            try
            {
                this.o_Handlers = this.CreateHandlersFromTarget(aTarget);
                ApplyHandersToTargets(aTarget, this.o_Handlers);
            }
            catch (Exception ex)
            {
                result = false;
            }
            return result;
        }
    }
}
